<template>
  <div>
    <p class="bot marClear"><span class="txt-lab">商品金额:</span><span class="txt-lab">￥{{ order.price }}</span></p>
    <p class="bot marClear" v-if="order.freeMoney > 0"><span class="txt-lab">使用积分:</span><span class="txt-lab">-￥{{ order.points }}</span></p>
    <p class="bot marClear" v-if="order.priceWay === 0">
      <span class="txt-lab" v-if="order.priceWay === 2">使用积分:</span>
      <span class="txt-lab" v-if="order.priceWay === 3">折扣优惠:</span>
      <span class="txt-lab" v-if="order.priceWay === 7">会员优惠:</span>
      <span class="txt-lab">-￥{{ order.freeMoney }}</span></p>
    <!--<p class="bot marClear" v-if="order.freight > 0"><span class="txt-lab">运费:</span><span class="txt-lab">+￥{{ order.freight }}</span></p>-->
    <p class="bot"><span class="txt-lab">实付款:</span><span class="txt-price">￥{{ order.price - order.freeMoney }}</span></p>
  </div>
</template>
<script type="text/ecmascript-6">
  export default {
    props: ['order'],
    data () {
//      return {
//        order:{
//          price: this.$store.state.tranStore.order.price,
//          points: this.$store.state.tranStore.order.points,
//          favorable: this.$store.state.tranStore.order.favorable,
//          discount: this.$store.state.tranStore.order.discount,
//          freight: this.$store.state.tranStore.order.freight,
//          actualPay: this.$store.state.tranStore.order.actualPay
//        }
//      }
    },
      mounted (){
      }
  }
</script>
<style></style>